/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #003366; /* 高校官网主色调：深蓝色 */
}

a:hover {
    color: #0066cc;
    text-decoration: underline;
}

ul {
    list-style: none;
}

/* 顶部头部样式 */
.header-top {
    background-color: #fff;
    border-bottom: 2px solid #003366;
    padding: 20px 0;
}

.header-top .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.header-top .university-logo {
    max-width: 500px;
    height: auto;
}

.college-info {
    text-align: center;
}

.college-info h1 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 5px;
}

.college-info p {
    font-size: 16px;
    color: #666;
    font-style: italic;
}

/* 导航栏样式 */
.main-nav {
    background-color: #003366;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    color: #fff;
    padding: 15px 20px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    background-color: #0066cc;
    color: #fff;
    text-decoration: none;
}

/* 下拉菜单样式 */
.dropdown:hover .sub-nav {
    display: block;
}

.sub-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0066cc;
    min-width: 150px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
}

.sub-nav li a {
    display: block;
    color: #fff;
    padding: 12px 20px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.sub-nav li a:hover {
    background-color: #0099ff;
    text-decoration: none;
}

/* 主要内容区域 */
.main-content {
    padding: 30px 0;
}

/* 轮播图样式 */
.carousel {
    margin-bottom: 30px;
    text-align: center;
}

.carousel-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.carousel figcaption {
    margin-top: 10px;
    font-size: 18px;
    color: #003366;
    font-weight: bold;
}

/* 内容包装器 */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* 图片展示区样式 */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .image-caption {
    opacity: 1;
}

/* 党建活动标题样式 */
.news-section h2 {
    color: #003366;
    padding-bottom: 10px;
    border-bottom: 2px solid #003366;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

/* 添加蓝色背景 */
.news-section {
    background-color: #e6f2ff;
    border-radius: 8px;
    padding: 20px;
    margin: 0;
    width: 100%;
}

/* 页脚样式 */
.main-footer {
    background-color: #003366;
    color: #fff;
    padding: 0;
    margin-top: 30px;
}

.footer-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 30px 0;
}

.footer-left {
    flex: 1;
    padding-right: 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.footer-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.footer-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
}

.footer-left img {
    max-width: 200px; /* 调整logo大小 */
    height: auto;
    margin-bottom: 10px;
}

.contact-info {
    flex: 1;
    text-align: center;
    width: 100%;
}

.contact-info h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-info address {
    font-style: normal;
    line-height: 1.6;
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.quick-links {
    flex: 1;
    width: 100%;
    text-align: right;
}

.quick-links h2 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin-bottom: 8px;
}

.quick-links li a {
    color: #cce5ff;
    transition: color 0.3s;
    text-decoration: none;
}

.quick-links li a:hover {
    color: #fff;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        text-align: center;
    }

    .college-info h1 {
        font-size: 24px;
    }

    .nav-list {
        flex-direction: column;
    }

    .nav-list > li {
        width: 100%;
    }

    .nav-list > li > a {
        padding: 12px 15px;
        font-size: 14px;
    }

    .sub-nav {
        position: static;
        box-shadow: none;
        background-color: #0055aa;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item img {
        max-width: 100%;
    }

    .footer-content {
        gap: 15px;
    }

    .quick-links ul {
        flex-direction: column;
        gap: 10px;
    }
}


        
        /* 容器样式 */
        .content-container {
             display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1200px; /* 限制最大宽度 */
    margin: 0 auto; /* 水平居中 */
    padding: 0 20px;
        }
        
        .section-row {
            display: flex;
            gap: 30px;
             width: 100%; /
        }
        
        .section-card {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        /* 标题区域样式 */
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid #0a3d62;
            padding-bottom: 8px;
        }
        
        .section-title {
            color: #0a3d62;
            font-size: 1.4rem;
            font-weight: bold;
        }
        
        .more-link {
            color: #0a3d62;
            text-decoration: none;
            font-size: 0.9rem;
        }
        
        .more-link:hover {
            text-decoration: underline;
        }
        
        /* 内容区域样式 */
        .section-content {
            display: flex;
            gap: 15px;
        }
        
        .content-image {
            flex: 0 0 300px;
        }
        
        .content-image img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 10px;
        }
        
        .page-number {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background-color: #0a3d62;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 0.9rem;
            cursor: pointer;
        }
        
        .page-number.active {
            background-color: #3c6382;
        }
        
        .content-list {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        
        .news-item {
            display: flex;
            justify-content: space-between;
            padding-bottom: 8px;
            border-bottom: 1px dashed #ddd;
        }
        
        .news-item:last-child {
            border-bottom: none;
        }
        
        .news-title {
            text-decoration: none;
            color: #333;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            flex: 1;
            margin-right: 10px;
        }
        
        .news-title:hover {
            color: #0a3d62;
            text-decoration: underline;
        }
        
        .news-date {
            color: #666;
            font-size: 0.9rem;
            white-space: nowrap;
        }
        
        /* 通知公告特殊样式 */
        .announcement-item {
            display: flex;
            gap: 10px;
            padding-bottom: 8px;
            border-bottom: 1px dashed #ddd;
        }
        
        .announcement-item:last-child {
            border-bottom: none;
        }
        
        .announcement-date {
            min-width: 40px;
            height: 40px;
            background-color: #2980b9;
            color: white;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            font-size: 0.8rem;
            font-weight: bold;
        }
        
        .announcement-title {
            flex: 1;
            text-decoration: none;
            color: #333;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .announcement-title:hover {
            color: #0a3d62;
            text-decoration: underline;
        }
        
        /* 响应式设计 */
        @media (max-width: 768px) {
            .section-row {
                flex-direction: column;
            }
            
            .section-content {
                flex-direction: column;
            }
            
            .content-image {
                flex: 0 0 auto;
            }
        }